home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / spiele / publicdomain / elan / src / symbols.h < prev    next >
C/C++ Source or Header  |  1996-06-07  |  2KB  |  74 lines

  1.  
  2. typedef int icon_type;      /* Tipi di rappresentazione interna */
  3.  
  4. typedef enum color_type
  5.     {
  6.     unexplored_square_color,
  7.     explored_square_color,
  8.     electricity_color,
  9.     heat_color,
  10.     water_color,
  11.     air_color,
  12.     food_color,
  13.     biomass_color,
  14.     elan_color,
  15.     cpu_power_color,
  16.     human_support_color,
  17.     hybrid_support_color,
  18.     morphing_power_color,
  19.     robot_color,
  20.     pantropic_color,
  21.     mutant_color,
  22.     parasite_color,
  23.     breeder_color,
  24.     gizmo_color,
  25.     mole_color,
  26.     COLOR_TYPE_NUMBER
  27.     } color_type;
  28.  
  29. typedef enum attribute_type
  30.     {
  31.     plain,
  32.     idle_device,
  33.     active_device,
  34.     empty_device,
  35.     full_device,
  36.     broken_device,
  37.     broken_channel,
  38.     idle_mobile,
  39.     active_mobile,
  40.     gravid_mobile,
  41.     hit_mobile,
  42.     ATTRIBUTE_TYPE_NUMBER
  43.     } attribute_type;
  44.  
  45. typedef struct symbol
  46.     {
  47.     icon_type icon;
  48.     color_type color;
  49.     attribute_type attribute;
  50.     boolean updated;
  51.     } symbol;
  52.  
  53. #define GROUND_ICON_NUMBER 5
  54.  
  55. #define CORNER_ICON     '+'
  56. #define CROSS_ICON      'x'
  57. #define LINK_ICON(n)    ('0' + (n))
  58. #define BREAK_ICON      '%'
  59. #define BLOW_ICON       '#'
  60.  
  61. extern const icon_type device_icon[DEVICE_CLASS_NUMBER];
  62. extern const icon_type channel_icon[DIRECTION_NUMBER];
  63. extern const icon_type mobile_icon[MOBILE_CLASS_NUMBER];
  64. extern const icon_type unexplored_ground_icon[GROUND_ICON_NUMBER];
  65. extern const icon_type explored_ground_icon[GROUND_ICON_NUMBER];
  66. extern const color_type resource_color[RESOURCE_TYPE_NUMBER];
  67. extern const color_type mobile_color[MOBILE_CLASS_NUMBER];
  68.  
  69. /* Protos */
  70. void set_icon(symbol *sp, icon_type icon);
  71. void set_color(symbol *sp, color_type color);
  72. void set_attribute(symbol *sp, attribute_type attribute);
  73.  
  74.